<!-- $Id: goods_list.htm 17126 2010-04-23 10:30:26Z  $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<!-- 商品列表 -->
<form method="post" action="projects.php?" name="listForm" >
  <!-- start goods list -->
  <div class="list-div" id="listDiv">
{/if}
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>
      <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />
      <a href="javascript:listTable.sort('goods_id'); ">Project ID</a>{$sort_goods_id}
    </th>
	<th><a href="javascript:listTable.sort('goods_name'); ">User Name</a>{$sort_goods_name}</th>
    <th><a href="javascript:listTable.sort('goods_name'); ">Subject</a>{$sort_goods_name}</th>
    <th><a href="javascript:listTable.sort('goods_sn'); ">Budget</a>{$sort_goods_sn}</th>
    <th><a href="javascript:listTable.sort('is_on_sale'); ">Launch Date</a>{$sort_is_on_sale}</th>
	<th><a href="javascript:listTable.sort('is_on_sale'); ">Proposals Number</a>{$sort_is_on_sale}</th>
    <th><a href="javascript:listTable.sort('is_best'); ">Status</a>{$sort_is_best}</th>
    <!--<th><a href="javascript:listTable.sort('is_new'); ">{$lang.is_new}</a>{$sort_is_new}</th>
    <th><a href="javascript:listTable.sort('is_hot'); ">{$lang.is_hot}</a>{$sort_is_hot}</th>
    <th><a href="javascript:listTable.sort('sort_order'); ">{$lang.sort_order}</a>{$sort_sort_order}</th> -->	   
    <!--<th><a href="javascript:listTable.sort('goods_number'); ">{$lang.proposalsNum}</a>{$sort_goods_number}</th> -->
    <th>Handler</th>
  <tr>
  {foreach from=$projects_list item=project}
  <tr>
    <!--<td><input type="checkbox" name="checkboxes[]" value="{$project.goods_id}" />{$project.goods_id}</td> -->
	{if $project.featuredFlag eq 1}
	<td style="text-align:center"><input type="radio" name="feature" value="{$project.pid}" checked="checked"/>{$project.pid}</td>
	{else}
	<td style="text-align:center"><input type="radio" name="feature" value="{$project.pid}"/>{$project.pid}</td>
	{/if}
    <!--<td class="first-cell" style="{if $project.is_promote}color:red;{/if}"><span onclick="listTable.edit(this, 'edit_goods_name', {$project.goods_id})">{$project.goods_name|escape:html}</span></td> -->
	<td class="first-cell" style="text-align:center">{$project.user_name|escape:html}</span></td>
	<td class="first-cell" style="text-align:center"><a href="projects.php?act=project_detail&pid={$project.pid}">{$project.subject|escape:html}</a></td>
    <td style="text-align:center"><span onclick="listTable.edit(this, 'edit_goods_sn', {$project.goods_id})">{$project.budgetType}</span></td>
    <td style="text-align:center"><span onclick="listTable.edit(this, 'edit_goods_price', {$project.goods_id})">{$project.createdDate}

    </span></td>
    <!--<td align="center"><img src="images/{if $project.is_on_sale}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_on_sale', {$project.goods_id})" /></td>
    <td align="center"><img src="images/{if $project.is_best}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_best', {$project.goods_id})" /></td>
    <td align="center"><img src="images/{if $project.is_new}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_new', {$project.goods_id})" /></td>
    <td align="center"><img src="images/{if $project.is_hot}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_hot', {$project.goods_id})" /></td>
    <td align="center"><span onclick="listTable.edit(this, 'edit_sort_order', {$project.goods_id})">{$project.sort_order}</span></td>  -->
    <td style="text-align:center"><span onclick="listTable.edit(this, 'edit_goods_number', {$project.goods_id})"><a href="proposals.php?act=proposals_list&pid={$project.pid}">{$project.proposalsNum}</a></span></td>
	<td style="text-align:center"><span onclick="listTable.edit(this, 'edit_goods_number', {$project.goods_id})">{$project.status}</span></td>
    <td style="text-align:center">
      <a href="projects.php?act=project_detail&pid={$project.pid}" title="View"><img src="/admin/images/icon_view.gif" width="16" height="16" border="0" /></a>    	 
      <a href="projects.php?act=project_delete&pid={$project.pid}" title="Delete"><img src="/admin/images/icon_trash.gif" width="16" height="16" border="0" /></a>
    </td>
  </tr>
  {/foreach}
</table>
<!-- end goods list -->

<!-- 分页 -->
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true">
    {include file="page.htm"}
    </td>
  </tr>
</table>
{if $full_page}
</div>

<div>
  <input type="submit" value="Feature" id="btnSubmit" name="btnSubmit" class="button" />
  <input type="hidden" name="act" value="act_feature" />
</div>
</form>

{include file="pagefooter.htm"}
{/if}